package com.ruoyi.zyt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zyt.mapper.FieldSchoolMapper;
import com.ruoyi.zyt.domain.FieldSchool;
import com.ruoyi.zyt.service.IFieldSchoolService;

/**
 * 院校开设专业Service业务层处理
 * 
 * @author zyt
 * @date 2023-11-03
 */
@Service
public class FieldSchoolServiceImpl implements IFieldSchoolService 
{
    @Autowired
    private FieldSchoolMapper fieldSchoolMapper;

    /**
     * 查询院校开设专业
     * 
     * @param id 院校开设专业主键
     * @return 院校开设专业
     */
    @Override
    public FieldSchool selectFieldSchoolById(Long id)
    {
        return fieldSchoolMapper.selectFieldSchoolById(id);
    }

    /**
     * 查询院校开设专业列表
     * 
     * @param fieldSchool 院校开设专业
     * @return 院校开设专业
     */
    @Override
    public List<FieldSchool> selectFieldSchoolList(FieldSchool fieldSchool)
    {
        return fieldSchoolMapper.selectFieldSchoolList(fieldSchool);
    }

    /**
     * 新增院校开设专业
     * 
     * @param fieldSchool 院校开设专业
     * @return 结果
     */
    @Override
    public int insertFieldSchool(FieldSchool fieldSchool)
    {
        return fieldSchoolMapper.insertFieldSchool(fieldSchool);
    }

    /**
     * 修改院校开设专业
     * 
     * @param fieldSchool 院校开设专业
     * @return 结果
     */
    @Override
    public int updateFieldSchool(FieldSchool fieldSchool)
    {
        return fieldSchoolMapper.updateFieldSchool(fieldSchool);
    }

    /**
     * 批量删除院校开设专业
     * 
     * @param ids 需要删除的院校开设专业主键
     * @return 结果
     */
    @Override
    public int deleteFieldSchoolByIds(Long[] ids)
    {
        return fieldSchoolMapper.deleteFieldSchoolByIds(ids);
    }

    /**
     * 删除院校开设专业信息
     * 
     * @param id 院校开设专业主键
     * @return 结果
     */
    @Override
    public int deleteFieldSchoolById(Long id)
    {
        return fieldSchoolMapper.deleteFieldSchoolById(id);
    }
}
